package Model2HomeWork;
//编写测试类使用多态格式分别调用上述方法，方法体中打印一句话进行功能模拟即可。
public class PhoneTest {
    public static void main(String[] args){
            //多态方式
            Plan p = new CallPackages(300,1000,19);
            p.getPayment();
            Plan p1 = new NetPlan(1000,20);
            p1.getPayment();
            //正常的引用
            PhoneCard pc = new PhoneCard(48273,"leo",45.6);
            pc.showPhoneCards();
            CallPackages cp = new CallPackages(100,500,9);
            cp.showCallPag();
            NetPlan np = new NetPlan(200,10);
            np.showNetPlan();
            //接口
            System.out.println("--------------------------");
            cp.call(300, SIMCard.nanoCard);
            NetService ns = new NetPlan();
            ns.net(500,SIMCard.simCard);
    }
}
